﻿using System;
using System.Windows;
using System.Windows.Controls;
using RAD.Modules.Scripts.Interfaces;
using RAD.Modules.Scripts.PresentationModels;

namespace RAD.Modules.Scripts.Views
{
    /// <summary>
    /// Interaction logic for CreateNetworkShareView.xaml
    /// </summary>
    public partial class DeleteShareView : Window, IDeleteShareView
    {
        public DeleteShareView()
        {
            Owner = Application.Current.MainWindow;
            InitializeComponent();

            Model = new DeleteShareViewPresentationModel();
            DataContext = Model;
        }

        public Window OwnerForm
        {
            get { return Owner; }
            set { Owner = value; }
        }

        #region IDeleteShareView Members

        public DeleteShareViewPresentationModel Model
        {
            get;
            set;
        }

        public Window Dialog
        {
            get { return this; }
        }

        public Button OkBtn
        {
            get { return _ok; }
        }

        #endregion

        private void _ok_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
        }
    }
}